package com.web.base.open.model;

import com.blue.jdbc.annotation.GeneratorType;
import com.blue.jdbc.annotation.Id;
import com.blue.jdbc.annotation.Table;
import com.blue.jdbc.annotation.Transient;

/**
 * 开放平台角色-帐号实体类
 * 
 * @author 代码由 blue-code 框架生成
 * @since 1.0 2017年02月27日
 */
@Table(name = "open_role_account")
public class RoleAccount
{
	@Id(generator = GeneratorType.ASSIGNED)
	private Integer roleId; // 角色编号
	@Id(generator = GeneratorType.ASSIGNED)
	private Integer accountId; // 帐号编号

	@Transient
	private String roleIds; // 角色ID列表
	@Transient
	private String accountName; // 帐号名称

	public RoleAccount()
	{
	}

	public RoleAccount(Integer roleId, Integer accountId)
	{
		this.roleId = roleId;
		this.accountId = accountId;
	}

	public Integer getRoleId()
	{
		return this.roleId;
	}

	public void setRoleId(Integer roleId)
	{
		this.roleId = roleId;
	}

	public Integer getAccountId()
	{
		return this.accountId;
	}

	public void setAccountId(Integer accountId)
	{
		this.accountId = accountId;
	}

	public String getRoleIds()
	{
		return roleIds;
	}

	public void setRoleIds(String roleIds)
	{
		this.roleIds = roleIds;
	}

	public String getAccountName()
	{
		return accountName;
	}

	public void setAccountName(String accountName)
	{
		this.accountName = accountName;
	}

}
